#!/bin/sh

v1=$1:$2
#var=$(echo $v1 |awk -F':' '{print $1,$3,$2}')
#echo "var="$var

#echo $(tcplisten $var)
node=$(wget -O - -q http://$1//sln/work/n2n-supernode/tcpnode.txt)
#echo "node="$node
if [ "$node" ]; then
	echo "ok"
else
	pc=$(ping 192.168.1.200 -c1 -W 0.1)
	pc=$(echo $pc|grep 100%)
	if [ ! "$pc" ]; then
		echo "error"
	
	fi
	
fi

